home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / script / vi-binds < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.7 KB  |  64 lines

  1. #
  2. # This script makes an attempt to simulate vi keybindings using the
  3. # ^E sticky keybinding.  Who knows how successful I will be...
  4. # This is very much a work in progress.  Not every vi keybinding maps
  5. # nicely to an ircII keybinding.  Some of these new keybindings can just
  6. # as well be added to epic, some of them may never be.  Suggestions for
  7. # improvements are always welcome.
  8. #
  9.  
  10. bind ^E ^E
  11. bind ^E0 BEGINNING_OF_LINE
  12. bind ^E$$ END_OF_LINE
  13. bind ^Ew FORWARD_WORD
  14. bind ^EW FORWARD_WORD
  15. bind ^Eb BACKWARD_WORD
  16. bind ^EB BACKWARD_WORD
  17. #bind ^Ee <end of current word>
  18. #bind ^EE <end of current word>
  19. bind ^Ea parse_command {
  20.     parsekey FORWARD_CHARACTER
  21.     # Insert mode?
  22. }
  23. bind ^EA parse_command {
  24.     parsekey END_OF_LINE
  25.     # Insert mode?
  26. }
  27. #bind ^Er <overwrite mode>
  28. #bind ^ER <delete line -- overwrite mode -- ^E>
  29. bind ^Ep YANK_FROM_CUTBUFFER
  30. bind ^Ex DELETE_CHARACTER
  31. bind ^EX BACKSPACE
  32.  
  33. #bind ^Ey <???>
  34. #bind ^EY <???>
  35. #bind ^Ei <insert-mode>
  36. #bind ^EI <start-of-line + insert-mode>
  37.  
  38. bind ^Eh BACKWARD_CHARACTER
  39. bind ^El FORWARD_CHARACTER
  40. bind ^Ek BACKWARD_HISTORY
  41. bind ^Ej FORWARD_HISTORY
  42.  
  43. #bind ^Eu <Undo -- not possible>
  44. #bind ^EU <Undo -- not possible>
  45.  
  46. #bind ^Ecw <delete word -- insert mode>
  47. #bind ^EcW <delete word -- insert mode>
  48. #bind ^Ecb <delete to start-of-word -- insert mode>
  49. #bind ^EcB <delete to start-of-word -- insert mode>
  50. #bind ^Ec$$ <delete to end-of-line -- insert mode>
  51. #bind ^EC <delete to end-of-line -- insert mode>
  52. #bind ^Ec0 <delete to start-of-line -- insert mode
  53.  
  54. bind ^Edd ERASE_LINE
  55. bind ^ED ERASE_TO_END_OF_LINE
  56. #bind ^Edw <delete word>
  57. #bind ^EdW <delete word>
  58. #bind ^Edb <delete to start of word>
  59. #bind ^EdB <delete to start of word>
  60. #bind ^Ed$$ <delete to end of line>
  61. #bind ^Ed0 <delete to start of line>
  62.  
  63. #hop'y2k
  64.